<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="wish" varStatus="wishindex" items="${datas}">
	<tr>
		<td>
			${wish.id}
			<c:if test="${wishindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${wish.nickname}</td>
		<td >${wish.suggest}</td>
		<td class="tmui-tips" tip="${tz:formatDate(wish.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(wish.createTime)}
		</td>
		<td>
			<tz:if test="${wish.deleteCode=='001'}">
				<tz:then><a href="javascript:void(0)" opid="${wish.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>
                	<tz:else><a href="javascript:void(0)" opid="${wish.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>
			</tz:if>
		</td>

		<td>
			<a href="${adminPath}/wish/edit/${wish.id}"  class="btn btn-success"><i class="icon-pencil"></i> 修改</a>
			<a href="javascript:void(0);" data-opid="${wish.id}" onclick="tzAdmin.remove(this)" class="btn btn-danger">删除</a>
		</td>
	</tr>
</c:forEach>
